<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/common.jsp"%>
<html>
	<head>
<style type="text/css">
<!--
.tb {
	height:23px;
	width: 35px;
}
 a {
	text-decoration: none;
}
.STYLE1 {font-size: 12px}
.STYLE2 {
	font-size: 14px;
	font-weight: bold;
}

/*TextStyle*/
.TextStyle1 {
	font-size: medium;
	color: #7F9DB9;
	font-weight: bold;
}
.TextStyle2 {
	font-size: medium;
	color: #7F9DB9;
	font-weight: 800;
	font-family: 宋体, Arial, Helvetica, sans-serif;
}

-->
</style>
		<script type="text/javascript" src="<%=contextPath%>/js/advanceSearch.js"></script>
		<script type="text/javascript" src="<%=contextPath%>/ext3/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="<%=contextPath%>/ext3/ext-all.js"></script>	
		<script type="text/javascript" src="<%=contextPath%>/js/My97DatePicker/WdatePicker.js"></script>
		<link rel="stylesheet" type="text/css"	href="<%=contextPath%>/ext3/resources/css/ext-all.css">
		<script>

			var model = "";
			
			Ext.onReady(function(){
				var tb = new Ext.Toolbar({
			   		renderTo: document.all.tbar,
			    	items: [
				        {
				            text: '增加条件',
				            icon:"<%=contextPath%>/images/add.gif",
				            handler:function() {
				            	addtr();
				            }
				       },'-',
				       {
				            text: '清空条件',
				            icon:"<%=contextPath%>/images/delete.gif",
				            handler:function() {
				            	document.getElementById("sp").innerHTML ="<table width='100%' align='right' name='tab' id='tab'></table>";
				            }
 						},'-', 
				        {
				            text: '导出',
				            icon:"<%=contextPath%>/images/excel_export.gif",
				         //   handler:expcsv,
				            handler:function() {
				            
				            	if (model == "") {
									alert("请先选择导出的模块");
									return;
								}
								
								document.getElementById("iframeSearch").src= "<%=contextPath%>/zbjlSearchList!expcsv.do?modelid=" + model + "&whereJson=" + getWhere();
				            
				            }
				        },'-',
				        {
				            text: '关闭',
				            icon:"<%=contextPath%>/images/banjie.png",
				            handler:function() {
				            	window.close();
				            }
				        }
			    	]
			    });
			});

		</script>
	<body>
		<div id ='tbar'></div>	
			<table width="100%" id="contab">
				<tbody id="querydiv">
				<tr>		
					<td align="center" width="16%" colspan="2" nowrap>
						<center>工作票统计记录&nbsp;<input type="radio" name="modelId" value="GZPTJJL" onclick="javascript:setModel('GZPTJJL')" /></center>
					</td>
					<td  width="16%" colspan="2" nowrap>
						<center>设备试验轮换情况&nbsp;<input type="radio" name="modelId" value="SBSYLH" onclick="javascript:setModel('SBSYLH')" /></center>
					</td>
					<td  width="16%" colspan="2" nowrap>
						<center>倒闸操作记录&nbsp;<input type="radio" name="modelId" value="DZCZJL" onclick="javascript:setModel('DZCZJL')" /></center>
					</td>
					
					<td width="16%" colspan="2" nowrap>
					    <center>异常故障情况&nbsp;<input type="radio" name="modelId" value="YCGZQK" onclick="javascript:setModel('YCGZQK')"/></center>
					</td>
					<td width="16%" colspan="2" nowrap>
						<center>设备缺陷记录&nbsp;<input type="radio" name="modelId" onclick="javascript:setModel('SBQXJL')" value="SBQXJL" /></center>
					</td>	
					<td width="16%" colspan="2" nowrap>
						&nbsp;
					</td>									
				</tr>
				<!--  <tr>		
					<td align="center" width="16%" colspan="2" nowrap>
						<center>倒闸操作预告&nbsp;<input type="radio" name="modelId" value="DZCZYG" onclick="javascript:setModel('DZCZYG')" /></center>
					</td>
					<td  width="16%" colspan="2" nowrap>
						<center>倒闸操作记录&nbsp;<input type="radio" name="modelId" value="DZCZJL" onclick="javascript:setModel('DZCZJL')" /></center>
					</td>
					<td  width="16%" colspan="2" nowrap>
						<center>设备试验轮换情况&nbsp;<input type="radio" name="modelId" value="SBSYLH" onclick="javascript:setModel('SBSYLH')" /></center>
					</td>
					<td width="16%" colspan="2" nowrap>
						<center>工作预告&nbsp;<input type="radio" name="modelId" value="GZYG" onclick="javascript:setModel('GZYG')" /></center>
					</td>
					<td width="16%" colspan="2" nowrap>
						<center>工作票统计记录&nbsp;<input type="radio" name="modelId" value="GZPTJJL" onclick="javascript:setModel('GZPTJJL')" /></center>
					</td>	
					<td width="16%" colspan="2" nowrap>
						<center>高频通道测试记录&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="modelId" value="HIGH" onclick="javascript:setModel('HIGH')" /></center>
					</td>									
				</tr>
				<tr>		
					<td colspan="2" nowrap>
						<center>异常故障情况&nbsp;<input type="radio" name="modelId" value="YCGZQK" onclick="javascript:setModel('YCGZQK')"/></center>
					</td>
					<td colspan="2" nowrap>
						<center>设备缺陷记录&nbsp;<input type="radio" name="modelId" onclick="javascript:setModel('SBQXJL')" value="SBQXJL" /></center>
					</td>
					<td colspan="2" nowrap>
						<center>五防钥匙访问情况&nbsp;<input type="radio" name="modelId" value="KEY" onclick="javascript:setModel('KEY')"/></center>
					</td>
					<td colspan="2" nowrap>
						<center>巡视情况&nbsp;<input type="radio" name="modelId" onclick="javascript:setModel('XSQK')" value="XSQK" /></center>
					</td>
					<td colspan="2" nowrap>
						<center>避雷器动作情况&nbsp;<input type="radio" name="modelId" value="BLQ" onclick="javascript:setModel('BLQ')" /></center>
					</td>	
					<td colspan="2" nowrap>
						&nbsp;<center>故障滤波器动作情况&nbsp;<input type="radio" name="modelId" value="GZLVQ" onclick="javascript:setModel('GZLVQ')" /></center>
					</td>									
				</tr> -->
		</table>
		<table width="100%" id="tablestyle1">
			<tr valign="top">
				<td class="lf"> 
					<iframe id="iframeSearch" style="display:none" src=""></iframe>
					<span id="sp"> 
						<table width='100%' align='right' name='tab' id='tab'></table>
					</span>
				</td>
			</tr>
		</table>
	</body>
</html>
